<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.workplan.vo.WorkPlanMain"%>
<%@page import="com.tjsinfo.tjsoa.common.PageController"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.User"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>"/>
    
   
    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>粮油集团办公自动化协作平台</title>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
<style >
	.contact_content {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1800;
			overflow: auto;
		}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: #C1EBFC;
			z-index:1002;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=30);
		}
	
</style>
<style>
#container {
		    width:600px;
		    height:300px;
		    border:3px solid #c3daf9;
		}
		
.calendar {
    background-image:url(<%=basePath%>images/icon_64.gif) !important;
}

.blist {
    background-image: url(<%=basePath%>images/icon_64.gif) !important;
}

.bmenu {
    background-image: url(<%=basePath%>images/ju.gif) !important;
}

.menu-title{
    background: #ebeadb url(<%=basePath%>images/icon_64.gif) repeat-x;
    border-bottom:1px solid #99bbe8;
    color:#15428b;
    font:bold 10px tahoma,arial,verdana,sans-serif;
    display:block;
    padding:3px;
}
.lan01{
background: url(images/lanbg01.gif) no-repeat 0 0; width:6px; height:24px;} 
.lan02{
background: url(images/lanbg02.gif) repeat-x; width:99%; height:24px;}            
.lan03{
background: url(images/lanbg03.gif) no-repeat; width:8px; height:24px;}             
.cha{
padding-top:3px}          
</style>	
<link href="style/txlz7.css" rel="stylesheet" type="text/css" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
		function page2()
		{
			document.from1.submit();
			
		}
		function deletefrom(id,typelist)
	{
		document.form1.id.value = id;
		document.form1.typelist.value = typelist;
		document.getElementById('black_over').style.display = "block";
		document.getElementById('deletefrom').style.top =  document.body.clientHeight/2;
		document.getElementById('deletefrom').style.left = document.body.clientWidth/5;
		document.getElementById('deletefrom').style.display = "block";
		
	}
		function qxdeletefrom()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('deletefrom').style.display = "none";
	}
	
	function deleteWorkPlan()
	{
			
		var form1 =  document.getElementById('form1');
		//form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/workplan/deleteWorkPlan.do');
	//	alert("asas");
		document.form1.submit();
	}
	function selectfrom()
	{
		document.getElementById('selectfrom').style.display = "block";
		document.getElementById('black_over').style.display = "block";
		document.getElementById('selectfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('selectfrom').style.left = document.body.clientWidth/5;
		
	}
	function qxselectfrom()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('selectfrom').style.display = "none";
	}
	function select()
	{
		var keyword = document.getElementById('keyword');
		if(keyword.value == '')
		{
			alert('请输入关键字');
			return;
		}
		document.slectform.submit();
	}
	</script>
  </head>
  
  <body>
  	<%
  		List list = (List)request.getAttribute("list");
  		int i = 1;
  		Iterator iterator = list.iterator();
  	
  	%>
   <div id="right" >
     <div class="p_011">
      	<div id="menu" style="padding-top:3px;"></div>
	  </div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="92%" >
          <tr>
            <td width="99%" valign="top" height="100%">
               <div class="contabyear"  style="overflow: scroll;">
                  <table class="p_06" width="100%" border="0" cellspacing="0">
                      <tr>
                        <th width="20%">日期</th>
                        <th width="20%">状态</th>
                        <th width="20%">类型</th>
                        <th width="40%">操作</th>
                      </tr>
                      <%
                      String type = "";
                      	while(iterator.hasNext())
                      	{
                      		WorkPlanMain workPlanMain = (WorkPlanMain)iterator.next();
                      		type = workPlanMain.getType();
                      		if(i % 2 == 0)
                      		{
                      %>
                      <tr>
                        <td><%
                        if("D".equals(workPlanMain.getType()))
                        {
                        	out.print(workPlanMain.getTime().getYear() +1900);
                        	
                        }
                        else if("Y".equals(workPlanMain.getType()))
                        {
                        	out.print(workPlanMain.getNumber());
                        }
                        else
                        {
                        	out.print(workPlanMain.getYear() );	
                        }
                        %>年</td>
                        <td>
                        	<%
                        		if(workPlanMain.getStart() == 1)
                        		{
                        			out.print("已制定");
                        		}
                        		else if(workPlanMain.getStart() == 2)
                        		{
                        			out.print("已查阅");
                        		}
                        		else 
                        		{
                        			out.print("已完成");
                        		}
                        	%>
                        </td>
                         <td>
                        	<%
                        		if("D".equals(workPlanMain.getType()) )
                        		{
                        			out.print("日计划");
                        		}
                        		else if("W".equals(workPlanMain.getType()) )
                        		{
                        			out.print("周计划");
                        		}
                        		else if("M".equals(workPlanMain.getType()) )
                        		{
                        			out.print("月计划");
                        		}
                        		else if("Q".equals(workPlanMain.getType()) )
                        		{
                        			out.print("季度计划");
                        		}
                        		else if("H".equals(workPlanMain.getType()) )
                        		{
                        			out.print("半年计划");
                        		}
                        		else if("Y".equals(workPlanMain.getType()) )
                        		{
                        			out.print("年计划");
                        		}
                        	%>
                        </td>
                        <td>
                        	<%
                        	if(workPlanMain.getStart() == 1)
                    		{
                    		%>
                    		<a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectOneWorkPlan.do?id=<%=workPlanMain.getId() %>">修改</a> | <a href="javascript:deletefrom('<%=workPlanMain.getId() %>','<%=workPlanMain.getType() %>')">删除</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do?id=<%=workPlanMain.getId() %>">完成情况</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do?id=<%=workPlanMain.getId() %>">查看</a></td>		
                    		<% 	
                    		}
                    		else if(workPlanMain.getStart() == 2)
                    		{
                    		%>
                    		<a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do?id=<%=workPlanMain.getId() %>">查看</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do?id=<%=workPlanMain.getId() %>">完成情况</a>
                    		<% 	
                    		}
                    		else 
                    		{
                    		%>
                    		<a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do?id=<%=workPlanMain.getId() %>">查看</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do?id=<%=workPlanMain.getId() %>">完成情况</a>
                    		<% 	
                    		}
                        	%>
                        
                      </tr>
                      <% 			
                      		}
                      		else
                      		{
                      %>
                      	<tr bgcolor="#F4F4F4">
                        <td><%
                        if("D".equals(workPlanMain.getType()))
                        {
                        	out.print(ToolKit.getFormatDate(workPlanMain.getTime(),"yyyy-MM-dd") );
                        	
                        }
                        else if("Y".equals(workPlanMain.getType()))
                        {
                        	out.print(workPlanMain.getNumber()+"年");
                        }
                        else if("W".equals(workPlanMain.getType()))
                        {
                        	out.print(workPlanMain.getYear()+"年" + workPlanMain.getNumber()+"周" );	
                        }
                        else if("M".equals(workPlanMain.getType()))
                        {
                        	out.print(workPlanMain.getYear()+"年" + workPlanMain.getNumber()+"月" );
                        }
                        else if("Q".equals(workPlanMain.getType()))
                        {
                        	out.print(workPlanMain.getYear()+"年" + workPlanMain.getNumber()+"季度" );
                        }
                        else if("H".equals(workPlanMain.getType()))
                        {
                        	if(workPlanMain.getNumber() == 1)
                        	{
                        		out.print(workPlanMain.getYear()+"年" + "上半年" );
                        	}
                        	else 
                        	{
                        		out.print(workPlanMain.getYear()+"年" + "下半年" );
                        	}
                        }
                        %></td>
                        <td>
                        	<%
                        		if(workPlanMain.getStart() == 1)
                        		{
                        			out.print("已制定");
                        		}
                        		else if(workPlanMain.getStart() == 2)
                        		{
                        			out.print("已查阅");
                        		}
                        		else 
                        		{
                        			out.print("已完成");
                        		}
                        	%>
                        </td>
                         <td>
                        	<%
                        		if("D".equals(workPlanMain.getType()) )
                        		{
                        			out.print("日计划");
                        		}
                        		else if("W".equals(workPlanMain.getType()) )
                        		{
                        			out.print("周计划");
                        		}
                        		else if("M".equals(workPlanMain.getType()) )
                        		{
                        			out.print("月计划");
                        		}
                        		else if("Q".equals(workPlanMain.getType()) )
                        		{
                        			out.print("季度计划");
                        		}
                        		else if("H".equals(workPlanMain.getType()) )
                        		{
                        			out.print("半年计划");
                        		}
                        		else if("Y".equals(workPlanMain.getType()) )
                        		{
                        			out.print("年计划");
                        		}
                        	%>
                        </td>
                        <td >
                     <%
                        	if(workPlanMain.getStart() == 1)
                    		{
                    		%>
                    		<a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectOneWorkPlan.do?id=<%=workPlanMain.getId() %>">修改</a> | <a href="javascript:deletefrom('<%=workPlanMain.getId() %>','<%=workPlanMain.getType() %>')">删除</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do?id=<%=workPlanMain.getId() %>">完成情况</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do?id=<%=workPlanMain.getId() %>">查看</a></td>		
                    		<% 	
                    		}
                    		else if(workPlanMain.getStart() == 2)
                    		{
                    		%>
                    		<a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do?id=<%=workPlanMain.getId() %>">查看</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do?id=<%=workPlanMain.getId() %>">完成情况</a>
                    		<% 	
                    		}
                    		else 
                    		{
                    		%>
                    		<a href="<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do?id=<%=workPlanMain.getId() %>">查看</a> | <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do?id=<%=workPlanMain.getId() %>">完成情况</a>
                    		<% 	
                    		}
                        	%>
                        
                      </tr>
                      <% 			
                      		}
                      %>
                      	
                      <% 		
                      	}
                      %>
                      <tr align="center">
                        <td colspan="7">
          <div class="page" style="height: 50px">
           <%PageController pageController = (PageController)request.getAttribute("pageController");
   		Integer  totalpage =	pageController.getPageCount();
   		out.print("共"+totalpage + "页,"); 
   		out.print("当前为第"+pageController.getCurrentPageNum() + "页,");
   		if(pageController.getCurrentPageNum() != 1 && list.size() >0)
   		{
   			int page2 = pageController.getCurrentPageNum(); 
   		%>
   			<a href="<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?start=up&page=<%=page2%>&type=<%=type%>">上一页</a>
   		<% 
   		}	
   		
		if(pageController.getCurrentPageNum() != pageController.getPageCount() && list.size() > 0)
   		{
   			int page2 = pageController.getCurrentPageNum(); 
   		%>
   			<a href="<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?start=down&page=<%=page2%>&type=<%=type%>">下一页</a>
   		<% 
   		}
   		
   		%><form name="from1" action="<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do" method="post">
   			跳转到<select name="page" onchange="page2()">
   				<%
   					int total = pageController.getPageCount();
   					for(int a =1;a<=total;a++)
   					{
   						if(a == pageController.getCurrentPageNum())
   						{
   				%>
   					<option value="<%=a%>" selected="selected"><%=a%>
   				<% 		
   						}
   						else 
   						{
   				%>
   					<option value="<%=a%>"><%=a%>   				
   				<% 		
   						}
   					}
   		
   				%>
   				
   			</select>页<%
   				String keyword = (String)request.getAttribute("keyword");
   				if(request.getAttribute("type") == null)
   				{
   					type =  "";
   				}
   				else 
   				{
   					type = (String)request.getAttribute("type"); 
   				}
   			%>
   			<input type="hidden" name="type" value="<%=type %>"/>
   			<input type="hidden" name="keyword" id="keyword" value="<%=keyword %>"/>

<%--   			<input type="hidden" name="type" value="<%=type %>"/>--%>
   		</form>                   
                          
                          
                 </div>
                        </td>
                    </tr>
                 </table>
              </div>
            </td>
          </tr>
      </table>
</div>

<div class="black_overlays" style="display: none;" id="black_over"></div>
  <div style="display: none;" class="contact_content" id="deletefrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qxdeletefrom()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">是否要删除您选择的计划,请确认?</td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="border-top:1px #CFCFD1 solid"><a href="javascript:deleteWorkPlan()" ><img src="images/qd.gif" />&nbsp;<a href="javascript:qxdeletefrom()" ><img src="images/qx.gif" /></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>      
            
         <form action="<%=basePath%>tjsinfo/tjsoa/workplan/deleteWorkPlan.do" name="form1" method="post">
	<input  type="hidden" name="id" value="" id="planid"/>
<%--	<input  type="hidden" name="type" value="list"/>--%>
	<input  type="hidden" name="typelist" value=""/>
	<input type="hidden" name="type" value="<%=type %>"/>
   	</form>
 <div style="display: none;" class="contact_content" id="deletefrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qxdeletefrom()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">是否要删除您选择的日志,请确认?</td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="border-top:1px #CFCFD1 solid"><a href="javascript:deleteWorkPlan()" ><img src="images/qd.gif" />&nbsp;<a href="javascript:qxdeletefrom()" ><img src="images/qx.gif" /></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>  
            
     <form action="<%=basePath%>tjsinfo/tjsoa/workplan/workplanselect.do" name="slectform" method="post">
   		 <div style="display: none;" id="selectfrom" class="contact_content">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="lan01">&nbsp;</td>
                            <td class="lan02">
                              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="5%" align="center" style="padding-top:3px;"><img src="images/jing.gif" /></td>
                                    <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">查询</td>
                                    <td width="6%"><div class="cha"><a href="javascript:qxselectfrom()"><img src="images/cha.gif" /></a></div></td>
                                  </tr>
                               </table>
                            </td>
                            <td class="lan03">&nbsp;</td>
                          </tr>
                     </table>
                 </td>
               </tr>
               <tr>
                 <td height="150" class="zz">
                     <table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab" >
                      <tr>
                        <td width="18%">类型：</td>
                        <td align="left">
                        <select name="type" class="textinput" >
                        <option value="" >全部</option>
                        <option value="D" selected="selected">日计划</option>
                        <option value="W">周计划</option>
                        <option value="M">月计划</option>
                        <option value="Q">季度计划</option>
                        <option value="H">半年计划</option>
                        <option value="Y">年计划</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td>关键字：</td>
                        <td align="left"><input name="keyword" type="text" size="50"/></td>
                      </tr>
                      <tr>
                        <td colspan="2" style="border-top:1px #CFCFD1 solid" height="40"><a href="javascript:select()"><img src="images/chaxun.gif" /></a>
                        </td>
                       </tr>
                   </table>
                 </td>
               </tr>
             </table>
            </div>
   	</form>   
<script type=text/javascript>
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL="ajaxFramework/ext-2.1/resources/images/default/s.gif";
		var menu = new Ext.menu.Menu({
	        id: 'mainMenu',
	        items: [
	            {
	                text: '添加年计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanYearFrom.do';
					}
	            },
	            {
	                text: '查看',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanYearModle.do';
					}
	            }
	        ]
	    });
	    
		var menuList = new Ext.menu.Menu({
	        id: 'mainMenuList',
	        items: [
	            {
	                text: '日计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=D';
					}
	            },
	            {
	                text: '周计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=W';
					}
	            },
	            {
	                text: '月计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=M';
					}
	            },
	            {
	                text: '季度计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=Q';
					}
	            },
	            {
	                text: '半年计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=H';
					}
	            },
	            {
	                text: '年计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=Y';
					}
	            }
	        ]
	    });
		var tb = new Ext.Toolbar(
			{
				height:25
			}
		);
	
	    tb.render('menu');
		tb.add({
	            text:'<font color="black">日计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanDateModle.do';
				}
	        
	    },{
	            text:'<font color="black">周计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanWeekModle.do';
				}
	        
	    },{
	            text:'<font color="black">月计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanMonthModle.do';
				}
	        
	    },{
	            text:'<font color="black">季度计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanJiDuModle.do';
				}
	        
	    },{
	            text:'<font color="black">半年计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanHalfYearModle.do';
				}
	        
	    },{
	            text:'<font color="black">年计划</font>',
	            iconCls: 'bmenu',  // <-- icon
	            menu: menu  // assign menu by instance
	        
	    },{
	            text:'<font color="black">列表视图</font>',
	            iconCls: 'bmenu',  // <-- icon
	            menu: menuList  // assign menu by instance
	        
	    },
	    {
	            text:'<font color="black">设置默认审批人</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanSetDefineFrom.do';
				}
	    },
	    {
	            text:'<font color="black">查询</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					selectfrom();
				}
	    }
	     <%
	   User user =  (User)session.getAttribute("user");
	    	if(user.getPermission().indexOf(",25,") != -1||user.getPermission().indexOf(",25,") == -1)
	    	{
	   %>,{
	            text:'<font color="black">审批</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/checkDefalntWorkPlan.do';
				}
	    }<% 		
	    	}
	    %>);
		
	}
);
</script> 

  </body>
</html>
